package com.yanjiali.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Package: com.yanjiali.vo
 * @Author: yanjiali
 * @Created: 2025/4/18 9:05
 */
@Data
@ApiModel("搜索结果VO对象")
public class SearchResultVO {

    @ApiModelProperty("搜索结果id，官方就是文章id否则单纯就是自动生成的索引id")
    private Long id;

    @ApiModelProperty("搜索结果标题")
    private String title;

    @ApiModelProperty("搜索结果简介")
    private String introduce;

    @ApiModelProperty("搜索结果封面")
    private String cover;

    @ApiModelProperty("来源")
    private String source;

    @ApiModelProperty("评分")
    private Integer score;

    @ApiModelProperty("为了补全查询，由标题和来源组成")
    private List<String> suggestion;
}
